
// change Post status
function fnChangePostStatus(record_id) {
    
}

function fnOnSubmitDeleteConfirm(msg_confirm, msg_tip) {
    has_checked = $('input[name=\'delete[]\']').is(':checked');
    if (has_checked) {
        return confirm(msg_confirm);
    } else {
        alert(msg_tip);
        return false;
    }
}

function fnOnSubmitConfirm(msg_confirm, msg_tip) {
    action = $('#action_list').val();
    if (action == 'update_order_pos') {
        return true;
    }
    has_checked = $('input[name=\'select[]\']').is(':checked');
    if (has_checked) {
        return confirm(msg_confirm);
    } else {
        alert(msg_tip);
        return false;
    }
}

function fnCheckAllBoxs() {
//    alert($('#delete_22').val());
    $("#checkallboxes").toggle(                    //this is the gif file id
        function() {
            $('input[name=\'delete[]\']').attr('checked','checked'); //add the atrribute checked
        },
        function () {
            $('input[name=\'delete[]\']').removeAttr("checked");     //remove the attribute checked
        });
}


